package com.drivemanage.service;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.multipart.MultipartFile;

import com.drivemanage.entry.DriveResult;

public interface CarInfoService {

    public DriveResult uploadImg(MultipartFile carpic, HttpServletRequest request, HttpServletResponse response)
            throws IOException;

    public DriveResult addCarsInfo(String carid, double carprice, String pinpai, String chexing, String chexingname,
            String jibie, String fadongji, String biansuxiang, String cheshen, String ckg, String zhouju,
            String youxiang, String zuoweishu, double pailiang, String jinqi, String qigang, String maxmali,
            String maxnj, String ranyoutype, String ranhoubianhao, String gongyou, String paifang, String qudong,
            String zhuli, String qianxuangua, String houxuangua, String qianzhidong, String houzhidong,
            String zhuchezhidong, String yuanguangdeng, String jinguangdeng);

	public DriveResult getCarInfo();

	public DriveResult getCarInfoOrderBy(String name, String type,
			String price, String t, String ordertype);

	public DriveResult getCarInfoByCarId(String carid);

}
